from django.conf.urls import url
from . import views

urlpatterns = [
    
    url(r'^$', views.index, name="index"),									#首页
    url(r'^pics/(?P<pIndex>[0-9]+)$', views.indexPics, name="pics"),		#浏览相册信息
    url(r'^pics/add$', views.addPics, name="addpics"),						#加载添加相册信息表单
    url(r'^pics/insert$', views.insertPics, name="insertpics"),				#执行添加相册信息
    url(r'^pics/del/(?P<pid>[0-9]+)$', views.delPics, name="delpics"),		#删除相册信息
    url(r'^pics/edit/(?P<pid>[0-9]+)$', views.editPics, name="editpics"),	#加载修改相册信息表单
    url(r'^pics/update$', views.updatePics, name="updatepics"),				#执行相册信息修改
]
